<template>

  <div class="content">
    <!-- 我的 -->
    <div class="myorderform">
      <div class="myset">
        <img :alt="userInfo?userInfo.nickName:''" :src="myInfo.avatar" />
        <div v-if="myInfo">{{myInfo.nickName}}</div>
        <div v-else>请登录</div>
        <div v-if="myInfo" class="myInfo">
          <b>易宝</b>
          <span>￥{{myInfo.transactionPrice}}</span>
          <i class="icon" style="cursor: inherit;">{{myInfo.isReal==1?'已实名':'未实名'}}</i>
          <i class="icon" @click="dialogTableVisible=true">提现</i>
        </div>
      </div>
      <!-- <div class="myorderform-title">我是买家</div> -->
      <div @click="tabtop(1)" :class="current == 1 ? 'goodsbuy goodsbuyatv' : 'goodsbuy'">在线充值</div>
      <div @click="tabtop(2)" :class="current == 2 ? 'goodsbuy goodsbuyatv' : 'goodsbuy'">商品订单</div>
      <!-- <div @click="tabtop(4)" :class="current == 4 ? 'goodsbuy goodsbuyatv' : 'goodsbuy'">商品中心</div> -->
      <div @click="tabtop(3)" :class="current == 3 ? 'goodsbuy goodsbuyatv' : 'goodsbuy'">充值订单</div>
      <div @click="tabtop(5)" :class="current == 5 ? 'goodsbuy goodsbuyatv' : 'goodsbuy'">实名认证</div>
      <!-- <div @click="tabtop(6)" :class="current == 6 ? 'goodsbuy goodsbuyatv' : 'goodsbuy'">提现记录</div> -->

    </div>
    <!-- 订单 -->

    <div class="orderform" v-if="myInfo">

      <rechargeMoney v-if="current == 1" />
      <GoodsOrde v-if="current == 2" />
      <RechargeOrde v-if="current == 3" />

      <div v-if="current == 5">
        <div class="recharge-hd">
          <span>实名认证</span>
          <el-button size="mini" v-if="myInfo.isReal==2 && !dialogRealyVisible" :disabled="disabled" @click="realproves(true)" type="danger">修改信息</el-button>
          <el-button size="mini" v-if="myInfo.isReal==2 && dialogRealyVisible" :disabled="disabled" @click="realproves(false)" type="danger">取消修改</el-button>
        </div>
        <el-form v-if="myInfo.isReal==0 || dialogRealyVisible" :rules="rules" ref="ruleForm" :model="ruleForm" label-width="150px" v-loading='loading'>
          <div class="relboxmain">
            <div class="relbox">
              <el-form-item label="身份证正面" prop="cardImg" v-if="myInfo.isReal==2 || myInfo.isReal==0">
                <el-upload :headers="headers" :data="{'types':1}" name="positive" :limit="1" list-type="picture-card" :file-list="sfzqmList" :on-error="sfzqmError" :on-remove="sfzqmRemove" :action="uploadPath" :on-success="sfzqmSuccess" :before-upload="beforeAvatarUpload">
                  <i class="el-icon-plus"></i>
                </el-upload>
              </el-form-item>
              <el-form-item label="身份证反面" prop="cardBackImg" v-if="myInfo.isReal==2 || myInfo.isReal==0">
                <el-upload :headers="headers" :data="{'types':2}" name="positive" :limit="1" list-type="picture-card" :file-list="sfzhmList" :on-error="sfzhmError" :on-remove="sfzhmRemove" :action="uploadPath" :on-success="sfzhmSuccess" :before-upload="beforeAvatarUpload">
                  <i class="el-icon-plus"></i>
                </el-upload>
              </el-form-item>
              <el-form-item label="姓名：" prop="userName" v-if="myInfo.isReal==2 || myInfo.isReal==0">
                <el-input readonly :value="ruleForm.userName" />
              </el-form-item>
              <el-form-item label="身份证号码：" prop="userCardNum" v-if="myInfo.isReal==2 || myInfo.isReal==0">
                <el-input readonly :value="ruleForm.userCardNum" />
              </el-form-item>
              <el-form-item label="选择银行：" prop="bankCode">
                <el-select v-model="ruleForm.bankCode" filterable placeholder="请选择">
                  <el-option v-for="item in bankListL" :key="item.id" :label="item.name" :value="item.id">
                  </el-option>
                </el-select>
              </el-form-item>
              <el-form-item label="开户行省：" prop="bankProvince">
                <el-select v-model="ruleForm.bankProvince" @change="bindProvince" filterable placeholder="请选择">
                  <el-option v-for="item in provinceList" :key="item.code" :label="item.name" :value="item.code">
                  </el-option>
                </el-select>
              </el-form-item>
              <el-form-item label="开户行市：" prop="bankCity">
                <el-select v-model="ruleForm.bankCity" filterable placeholder="请选择">
                  <el-option v-for="item in cityList" :key="item.id" :label="item.name" :value="item.name">
                  </el-option>
                </el-select>
              </el-form-item>
              <el-form-item label="银行卡号：" prop="bankAccount">
                <el-input v-model="ruleForm.bankAccount" />
              </el-form-item>
              <el-form-item label="开户支行：" prop="bankSubname">
                <el-input v-model="ruleForm.bankSubname" />
              </el-form-item>
              <el-form-item label="提现密码：" prop="bankPass">
                <el-input v-model="ruleForm.bankPass" />
              </el-form-item>
            </div>

          </div>

          <el-form-item>
            <el-button v-if="!dialogRealyVisible" :loading='loading' @click="handlePublish" type="danger">保存</el-button>
            <el-button v-if="dialogRealyVisible" :loading='loading' @click="handleAmend" type="danger">确定修改</el-button>
          </el-form-item>
        </el-form>
        <div v-if="myInfo.isReal==1" class="myrealy">实名认证成功</div>
        <div v-if="myInfo.isReal==2&&!dialogRealyVisible" class="myrealy">审核未通过</div>
        <div v-if="myInfo.isReal==3" class="myrealy">资料以及提交审核中.....</div>
      </div>

      <div v-if="current == 4">
        <div class="recharge-hd">商品中心</div>
        <div class="indent">
          <el-table :header-cell-style="{background:'#FAFAFA',color:'#001013',fontWeight:'bold'}" :data="tableData" style="width: 100%">
            <el-table-column prop="date" label="购买商品">
            </el-table-column>
            <el-table-column prop="name" label="订单编号">
            </el-table-column>
            <el-table-column prop="address" label="购买时间">
            </el-table-column>
            <el-table-column prop="address" label="下载">
            </el-table-column>
          </el-table>
        </div>
      </div>
      <div v-if="current == 6">
        <div class="recharge-hd">提现记录</div>
        <div class="allorders">
          <div @click="orderform(1)" :class="indent == 1?'cancellation-order cancellation-active':'cancellation-order'">全部订单</div>
          <div @click="orderform(2)" :class="indent == 2?'cancellation-order cancellation-active':'cancellation-order'">待付款</div>
          <div @click="orderform(3)" :class="indent == 3?'cancellation-order cancellation-active':'cancellation-order'">交易中</div>
          <div @click="orderform(4)" :class="indent == 4?'cancellation-order cancellation-active':'cancellation-order'">已完成</div>
          <div @click="orderform(5)" :class="indent == 5?'cancellation-order cancellation-active':'cancellation-order'">已取消</div>
        </div>
        <div class="search-programa">
          <el-input size="mini" placeholder="请输入内容" v-model="searchinput" clearable class="search-input"> </el-input>
          <el-button class="search-but" type="danger"></el-button>
        </div>
        <div class="indent">
          <el-table :header-cell-style="{background:'#FAFAFA',color:'#001013',fontWeight:'bold'}" :data="tableData" style="width: 100%">
            <el-table-column prop="date" label="购买商品">
            </el-table-column>
            <el-table-column prop="name" label="订单编号">
            </el-table-column>
            <el-table-column prop="address" label="购买时间">
            </el-table-column>
            <el-table-column prop="address" label="下载">
            </el-table-column>
          </el-table>
        </div>
      </div>

    </div>
    <div class="orderform" v-else></div>

    <el-dialog width="400px" @open="opened" @close="close" :append-to-body='true' :destroy-on-close="true" :close-on-click-modal="false" center :title="formData.configId==2?'支付宝扫码':'微信扫码'" :visible.sync="qrCodeUrlcod">
      <div class="popup-content" v-if="!isPayStatus" v-loading="loading">
        <div>订单号：<span style="font-size: 22px;color: #e03104;font-weight: 600;">{{ordersn.out_trade_no}}</span></div>
        <div style="margin-bottom: 10px;">充值金额：<span style="font-size: 22px;color: #e03104;font-weight: 600;">{{ordersn.total_fee}}</span></div>
        <div style="margin-bottom: 10px;">风控金：<span style="font-size: 22px;color: #e03104;font-weight: 600;">{{ordersn.total_floats}}</span></div>
        <div class="qrCodeUrl" ref="qrCodeUrl" v-show="!isOut"></div>
        <div class="out" v-show="isOut">支付超时...</div>
        <div style="text-align: center; margin-top: 10px;" v-if="formData.configId==2">
          <img class="con-t-watpay" src="../../assets/static/t-06.png" />请使用支付宝APP扫描二维码支付。
        </div>
        <div style="text-align: center; margin-top: 10px;" v-if="formData.configId==1">
          <img class="con-t-watpay" src="../../assets/static/t-07.png" />请使用微信APP扫描二维码支付。
        </div>
      </div>
      <div class="popup-content" v-if="isPayStatus">
        <h2 style="color: #333;text-align: center;    line-height: 40px;">
          <span style="color:#DA2740;font-size:40px;vertical-align: top;" class="el-icon-success"></span>充值成功
        </h2>
        <!-- <h2 style="color: #333;text-align: center;    line-height: 40px;">
							<span style="color:#DA2740;font-size:40px;vertical-align: top;" class="el-icon-error"></span>充值失败
						</h2> -->
        <div class="particulars">
          <div class="particulars-item">
            <b>订单号：</b>
            <span>{{ordersn.out_trade_no}}</span>
          </div>
          <div class="particulars-item">
            <b>充值金额：</b>
            <span>{{ordersn.total_fee}}</span>
          </div>
          <div class="particulars-item">
            <b>风控金：</b>
            <span>{{ordersn.total_floats}}</span>
          </div>
          <div class="particulars-item">
            <b>支付方式：</b>
            <span>{{formData.configId==1?'微信':'支付宝'}}</span>
          </div>
        </div>
      </div>
    </el-dialog>

    <!-----------------提现窗口-------------------------->
    <el-dialog width="450px" center title="提现" :close-on-click-modal="false" :visible.sync="dialogTableVisible">

      <el-form label-width="100px" label-position="left" ref="deposit" :model="deposit" :rules="rules">
        <el-form-item prop="depositMoney" label="提现金额">
          <el-input size="mini" @input="deposit.depositMoney=deposit.depositMoney.replace(/[^\d.]/g,'')" v-model="deposit.depositMoney" placeholder="请输入提现金额"></el-input>
        </el-form-item>
        <el-form-item prop="depositPassword" label="提现密码">
          <el-input size="mini" v-model="deposit.depositPassword" placeholder="请输入提现密码"></el-input>
        </el-form-item>

      </el-form>
      <el-button class="recharg-but" :disabled="loading" @click="withdraw" type="danger">确认提现</el-button>
    </el-dialog>

  </div>
</template>

<script>
import GoodsOrde from './myComponents/goodsOrde111.vue'
import RechargeOrde from './myComponents/rechargeMoney.vue'
import rechargeMoney from './myComponents/rechargeMoney.vue'
export default {
  components: { GoodsOrde, RechargeOrde, rechargeMoney },
  data () {
    return {
      messageType: 3,
      orderStatus: 201,
      dialogRealyVisible: false,
      dialogTableVisible: false,
      time: '',
      myInfo: '',
      loading: false,
      headers: localStorage.getItem('toke'),
      uploadPath: this.$apis.uploadPath,
      sfzqmList: [],
      sfzhmList: [],
      ordersn: '',
      configIdList: '',
      qrCodeUrlcod: false,
      isPayStatus: false,
      isOut: false,
      disabled: false,
      tableData: [],
      searchinput: '',
      current: 1,
      indent: 1,
      provinceList: [], // 省
      cityList: [], // 市
      cityListOld: [],
      bankListL: [
        { id: 1, name: '工商银行' },
        { id: 3, name: '农业银行' },
        { id: 2, name: '建设银行' },
        { id: 5, name: '中国银行' },
        { id: 7, name: '招商银行' },
        { id: 33, name: '北京银行' },
        { id: 6, name: '交通银行' },
        { id: 13, name: '兴业银行' },
        { id: 65, name: '南京银行' },
        { id: 14, name: '民生银行' },
        { id: 8, name: '光大银行' },
        { id: 18, name: '平安银行' },
        { id: 67, name: '渤海银行' },
        { id: 66, name: '东亚银行' },
        { id: 17, name: '宁波银行' },
        { id: 12, name: '中信银行' },
        { id: 11, name: '广发银行' },
        { id: 16, name: '上海银行' },
        { id: 9, name: '上海浦东发展银行' },
        { id: 4, name: '中国邮政' },
        { id: 10, name: '华夏银行' },
        { id: 68, name: '北京农村商业银行' }
      ],
      formData: {
        money: '',
        configId: 1
      },
      deposit: {
        depositMoney: '', // 提现金额
        depositPassword: '' // 提现密码
      },
      rules: {
        money: [
          {
            required: true,
            message: '请输入充值金额'
          },
          {
            validator: function (rule, value, callback) {
              if (value <= 0) {
                callback(new Error('充值金额需大于0'))
              } else {
                callback()
              }
            }
          }
        ],
        configId: [
          {
            required: true,
            message: '请选择支付方式'
          }
        ],
        cardImg: [
          { required: true, message: '请选择身份证正面', trigger: 'change' }
        ],
        cardBackImg: [
          { required: true, message: '请选择身份证反面', trigger: 'change' }
        ],
        bankCode: [
          { required: true, message: '请选择银行', trigger: 'change' }
        ],
        bankAccount: [
          { required: true, message: '请填写银行卡号', trigger: 'blur' }
        ],
        bankProvince: [
          { required: true, message: '请选择省', trigger: 'change' }
        ],
        bankCity: [{ required: true, message: '请选择市', trigger: 'change' }],
        bankSubname: [
          { required: true, message: '请填写开户支行', trigger: 'blur' }
        ],
        bankPass: [
          { required: true, message: '请填写提现密码', trigger: 'blur' }
        ],
        depositMoney: [
          { required: true, message: '请输入提现金额', trigger: 'blur' },
          {
            validator: function (rule, value, callback) {
              if (value <= 0) {
                callback(new Error('提现金额需大于0'))
              } else {
                callback()
              }
            }
          }
        ],
        depositPassword: [
          { required: true, message: '请输入提现密码', trigger: 'blur' }
        ]
      },

      ruleForm: {
        birthday: '',
        cardImg: '',
        cardBackImg: '',
        companyCode: '',
        companyName: '',
        companyUrl: '',
        gender: '',
        postalAddress: '',
        userCardNum: '',
        userName: '',
        yyzz: '',
        bankCode: '', // 银行代码
        bankAccount: '', // 开户账号
        bankProvince: '', // 开户行省
        bankCity: '', // 开户行市
        bankSubname: '', // 开户支行
        bankPass: '' // 提现密码
      }
    }
  },
  computed: {
    userInfo () {
      if (localStorage.getItem('token')) {
        this.getInfo()
      } else {
        this.myInfo = ''
        this.$router.replace('./')
      }
      return this.$store.state.userInfo
    }
  },

  mounted () {
    var e = this.$route.query
    if (e.id) {
      this.current = e.id
    }
    //  this.$apis.zfbpayList().then(res=>{
    //     this.configIdList=res.data.data.list
    //     this.configId=this.configIdList[0].id
    //     console.log(this.configId)
    //  })
  },
  methods: {
    init () {
      if (this.provinceList.length <= 0 && localStorage.getItem('token')) {
        this.$apis
          .province({
            id: 0
          })
          .then(res => {
            this.provinceList = res.data.data.list
          })
        this.$apis.city().then(res => {
          this.cityListOld = res.data.data.list
        })
      }
    },
    bindProvince (e) {
      this.ruleForm.bankCity = ''
      this.cityListOld.map(item => {
        if (item.code == e) {
          this.cityList = item.children
          this.ruleForm.bankProvince = item.name
        }
      })
    },
    getInfo () {
      this.$apis.getInfo().then(res => {
        this.myInfo = res.data.data
      })
    },
    tabtop (e) {
      this.current = e

      if (e == 4) {
        this.init()
      }
    },
    orderform (e) {
      this.indent = e
    },

    rechargBut () {
      this.$refs.form.validate(valid => {
        if (valid) {
          this.disabled = true
          this.qrCodeUrlcod = true
        } else {
          return false
        }
      })
    },
    close () {
      this.disabled = false
      this.isPayStatus = false
      this.ordersn = ''
      clearInterval(this.time)
    },
    opened () {
      this.generateOrder()
    },
    creatQrCode (url) {
      var qrcode = new QRCode(this.$refs.qrCodeUrl, {
        text: url, // 需要转换为二维码的内容
        width: 350,
        height: 350,
        colorDark: '#000000',
        colorLight: '#ffffff',
        correctLevel: QRCode.CorrectLevel.H
      })
    },

    generateOrder () {
      // {’messageType’:’订单类型 1余额充值 2购买素材’,’pirce’:’金额’,’numbers’:’数量’,’goodsid’:’商品id’,’payType’:’支付类型wx/zfb’,’configId’:’支付通道ID’}
      let query = {
        messageType: 2,
        pirce: this.formData.money,
        payType: 'jf',
        configId: this.formData.configId,
        numbers: 1
      }
      this.loading = true
      this.$apis.generateOrder(query).then(res => {
        if (res.data.errno == 0) {
          this.createNative(res.data.data.orderSn)
        } else {
          this.$message.error('创建订单失败')
          this.qrCodeUrlcod = false
        }
        this.disabled = false
      })
    },

    createNative (e) {
      this.$apis.createNative({ ordersn: e }).then(res => {
        if (res.data.errno == 0) {
          this.ordersn = res.data.data
          this.creatQrCode(res.data.data.code_url)
          this.queryByOrderSn(res.data.data.out_trade_no)
        } else {
          this.$message.error('创建二维码失败')
          this.qrCodeUrlcod = false
        }
        this.disabled = false
        this.loading = false
      })
    },

    queryByOrderSn (e) {
      clearInterval(this.time)
      let self = this
      let index = 1
      this.time = setInterval(function () {
        self.$apis
          .queryByOrderSn({
            ordersn: e
          })
          .then(res => {
            index++
            if (index > 600) {
              clearInterval(self.time)
              self.isOut = true
            } else {
              if (res.data.data == 201) {
                self.isPayStatus = true
                self.getInfo()
                clearInterval(self.time)
              } else {
                this.isPayStatus = false
              }
            }
          })
      }, 1000)
    },

    sfzqmError (err, file) {
      // 上传出错
      this.ruleForm.cardImg = ''
      this.$notify.error({
        title: '错误',
        message: '身份证正面上传出错',
        duration: 6000
      })
    },
    sfzqmSuccess (res, file) {
      // 上传成功
      if (res.errno == 0) {
        this.ruleForm.birthday = res.data.birthday
        this.ruleForm.userCardNum = res.data.idcardNum
        this.ruleForm.userName = res.data.username
        this.ruleForm.gender = res.data.sex == '女' ? 2 : 1
        var Formqm = new FormData()
        Formqm.append('file', file.raw)
        this.$apis
          .baomingcreate(Formqm)
          .then(res => {
            if (res.data.errno == 0) {
              this.ruleForm.cardImg = res.data.data.url
              this.$notify.success({
                title: '成功',
                message: '身份证正面识别成功'
              })
            } else {
              this.$notify.error({
                title: '错误',
                message: res.data.errmsg,
                duration: 6000
              })
            }
          })
          .catch(err => {
            console.log(err)
          })
      } else {
        this.$notify.error({
          title: '错误',
          message: res.errmsg,
          duration: 6000
        })
      }
    },
    sfzqmRemove () {
      // 移除图片
      this.ruleForm.cardImg = ''
    },

    sfzhmError (err, file) {
      // 上传出错
      this.ruleForm.cardBackImg = ''
      this.$notify.error({
        title: '错误',
        message: '身份证正面上传出错',
        duration: 6000
      })
    },
    sfzhmSuccess (res, file) {
      // 上传成功
      if (res.errno == 0) {
        var Formqm = new FormData()
        Formqm.append('file', file.raw)
        this.$apis
          .baomingcreate(Formqm)
          .then(res => {
            if (res.data.errno == 0) {
              this.ruleForm.cardBackImg = res.data.data.url
              this.$notify.success({
                title: '成功',
                message: '身份证反面识别成功'
              })
            } else {
              this.$notify.error({
                title: '错误',
                message: res.data.errmsg,
                duration: 6000
              })
            }
          })
          .catch(err => {
            console.log(err)
          })
      } else {
        this.$notify.error({
          title: '错误',
          message: res.errmsg,
          duration: 6000
        })
      }
    },
    sfzhmRemove () {
      // 移除图片
      this.cardBackImg.sfzhm = ''
    },
    beforeAvatarUpload (file) {
      // 图片改变
      var isJPG = false
      if (
        file.type === 'image/jpeg' ||
        file.type === 'image/png' ||
        file.type === 'image/gif'
      ) {
        isJPG = true
      }
      const isLt2M = file.size / 1024 / 1024 < 2

      if (!isJPG) {
        this.$message.error('上传图片只能是 JPG/PNG/GIF 格式!')
      }
      if (!isLt2M) {
        this.$message.error('上传图片大小不能超过 2MB!')
      }

      return isJPG && isLt2M
    },
    realproves (e) {
      // 获取实名信息详情
      if (e) {
        this.$apis.realproves().then(res => {
          this.ruleForm = res.data.data
          this.sfzqmList = [{ url: this.ruleForm.cardImg }]
          this.sfzhmList = [{ url: this.ruleForm.cardBackImg }]
        })
      }
      this.dialogRealyVisible = e
    },
    handleAmend () {
      // 修改实名
      this.$refs['ruleForm'].validate(valid => {
        if (valid) {
          this.loading = true
          this.$apis.realUpdate(this.ruleForm).then(res => {
            if (res.data.errno == 0) {
              this.$notify.success({
                title: '成功',
                message: '修改实名认证成功'
              })
              this.getInfo()
            } else {
              this.$notify.error({
                title: '错误',
                message: res.data.errmsg
              })
            }
            this.loading = false
          })
        } else {
          this.$message({
            message: '请检查数据必填项',
            type: 'warning'
          })
          return false
        }
      })
    },
    handlePublish () {
      // 增加实名

      this.$refs['ruleForm'].validate(valid => {
        if (valid) {
          this.loading = true
          this.$apis.realCreate(this.ruleForm).then(res => {
            if (res.data.errno == 0) {
              this.$notify.success({
                title: '成功',
                message: '实名认证成功'
              })
              this.getInfo()
            } else {
              this.$notify.error({
                title: '错误',
                message: res.data.errmsg
              })
            }
            this.loading = false
          })
        } else {
          this.$message({
            message: '请检查数据必填项',
            type: 'warning'
          })
          return false
        }
      })
    },

    withdraw () {
      this.$refs.deposit.validate(valid => {
        if (valid) {
          this.loading = true
          this.$apis.moneyApply(this.deposit).then(res => {
            if (res.data.errno == 0) {
              this.$notify.success({
                title: '成功',
                message: '提现申请成功'
              })

              this.getInfo()
            } else {
              this.$notify.error({
                title: '错误',
                message: res.data.errmsg
              })
            }
            this.dialogTableVisible = false
            this.loading = false
          })
        } else {
          return false
        }
      })
    }
  }
}
</script>

<style lang="less" scoped>
.con-t-select {
  margin-top: 0px;
}
.content {
  display: flex;
  min-height: 100vh;
}
.myorderform {
  flex: 1;
  background-color: #fafafa;
}
.myset {
  text-align: center;
  padding: 70px 20px 50px;
  font-size: 16px;
  img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-bottom: 10px;
  }
  div {
    span {
      color: #d1483f;
    }
  }
}
.myorderform-title {
  font-size: 18px;
  margin-bottom: 30px;
  text-align: center;
}
.goodsbuy {
  padding: 15px 0px;
  color: #828282;
  font-size: 18px;
  cursor: pointer;
  text-align: center;
}
.goodsbuyatv {
  border-left: 4px solid #d82141;
  background-color: #fff;
}
.orderform {
  background-color: #fff;
  padding: 60px 40px;
  flex: 4;
  box-sizing: border-box;
}
.allorders {
  display: flex;
  margin-bottom: 20px;
}
.cancellation-order {
  border-right: 2px solid #ddd;
  padding: 0px 30px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}
.cancellation-active {
  color: #d82141;
}
.cancellation-order:last-child {
  border: none;
}
.cancellation-order:first-child {
  padding-left: 0;
}
.uni-input {
  border: 1px solid #e4e4e4;
  width: 30%;
  border-radius: 10px;
  padding: 10px 0;
  padding-left: 20px;
  margin-bottom: 40px;
}
.indent-select {
  display: flex;
  .uni-data-select {
    margin-right: 10px;
  }
  img {
    width: 80px;
    height: 60px;
  }
}
.uni-stat__select {
  margin-right: 40px;
  margin-bottom: 40px;
}
.seedetails {
  color: #fff;
  background: linear-gradient(#d82141, #f36638);
}

.search-programa {
  margin: 20px 0px;
  display: flex;
  align-items: center;
  .search-but {
    width: 40px;
    height: 28px;
    background: url("../../assets/static/select.png") no-repeat;
    background-size: contain;
    border: none;
    margin-left: 10px;
  }
  .search-input {
    width: 250px;
  }
}
.recharge-hd {
  border-left: 3px solid #d82141;
  padding: 2px 10px;
  margin-bottom: 30px;
}
.recharge-bd {
  width: 500px;
  margin-left: 150px;
}

.recharg-but {
  margin-left: 100px;
  margin-top: 20px;
}

.qrCodeUrl,
.out {
  width: 350px;
  height: 350px;
}

.out {
  background: url("../../assets/static/t-09.png") no-repeat center top 50px;
  background-size: 128px;
  text-align: center;
  line-height: 400px;
}

.particulars {
  margin: 30px 0px;
  padding: 15px;
  border-top: 1px solid #efefef;
  border-bottom: 1px solid #efefef;
}
.particulars-item {
  display: flex;
  line-height: 30px;
  b {
    color: #444444;
    font-size: 14px;
    flex: 1;
  }
  span {
    color: #888888;
    font-size: 16px;
    flex: 3;
  }
}

.myInfo {
  margin-top: 10px;
  .icon {
    font-style: normal;
    color: #986e32;
    font-size: 12px;
    background: #ffe863;
    border: 1px #986e32 dashed;
    padding: 2px 3px;
    vertical-align: middle;
    cursor: pointer;
    white-space: nowrap;
  }
}
</style>